<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"> <style>
	.KEYW {color: #933;}
	.COMM {color: #bbb; font-style: italic;}
	.NUMB {color: #393;}
	.STRN {color: #393;}
	.REGX {color: #339;}
	.line {border-right: 1px dotted #666; color: #666; font-style: normal;}
	</style></head><body><pre><span class='line'>  1</span> <span class="COMM">/** 
<span class='line'>  2</span>  * 新しいキー送信クラスを作成する。
<span class='line'>  3</span>  * @class 連続で自動的にキー送信を行う
<span class='line'>  4</span> &lt;pre class = "code">
<span class='line'>  5</span> 使用例：
<span class='line'>  6</span> // ノートパッドを起動
<span class='line'>  7</span> Process.exec("notepad", [], Const.WINDOW_STYLE_NORMAL, false);
<span class='line'>  8</span> 
<span class='line'>  9</span> // 起動を待つ
<span class='line'> 10</span> sleep(100);
<span class='line'> 11</span> 
<span class='line'> 12</span> // "日本語"という文字列を書きこんで、abc.txtに保存。
<span class='line'> 13</span> var ks = new KeySender("無題")
<span class='line'> 14</span>     .sendJapaneseKeys("日本語")
<span class='line'> 15</span>     .sendKeyWithControl("s")
<span class='line'> 16</span>     .sendKeys("abc.txt")
<span class='line'> 17</span>     .sendEnter();
<span class='line'> 18</span> &lt;/pre>
<span class='line'> 19</span>  * @param {String} targetWindow KeySend対象のウインドウ名を指定します。
<span class='line'> 20</span>  * @param {Number} duration (オプション)KeySendごとの待ち時間(ミリ秒)を指定します(初期値 0)。
<span class='line'> 21</span>  */</span><span class="WHIT">
<span class='line'> 22</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">KeySender</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">targetWindow</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">duration</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 23</span> </span><span class="WHIT">  </span><span class="NAME">this.myDuration</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">duration</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 24</span> </span><span class="WHIT">  </span><span class="NAME">Const.WSHELL.AppActivate</span><span class="PUNC">(</span><span class="NAME">targetWindow</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 25</span> </span><span class="WHIT">  </span><span class="NAME">sleep</span><span class="PUNC">(</span><span class="NAME">KeySender.DURATION</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 26</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 27</span> 
<span class='line'> 28</span> </span><span class="COMM">// Constants of KeySender</span><span class="WHIT">
<span class='line'> 29</span> </span><span class="COMM">// private</span><span class="WHIT">
<span class='line'> 30</span> </span><span class="COMM">// AppActivateしてからKeySendするまでの待ち時間</span><span class="WHIT">
<span class='line'> 31</span> </span><span class="NAME">KeySender.DURATION</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">10</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 32</span> 
<span class='line'> 33</span> </span><span class="COMM">// Prototypes of KeySender</span><span class="WHIT">
<span class='line'> 34</span> </span><span class="NAME">KeySender.prototype</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 35</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'> 36</span>    * 指定したtextをキー送信します。
<span class='line'> 37</span>    * @param {String} text 送信する文字列
<span class='line'> 38</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'> 39</span>    * @return this
<span class='line'> 40</span>    */</span><span class="WHIT">
<span class='line'> 41</span> </span><span class="WHIT">  </span><span class="NAME">sendKeys</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">text</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 42</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="NAME">text</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 43</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 44</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 45</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'> 46</span>    * 指定した日本語textをキー送信します。
<span class='line'> 47</span>    * @param {String} text 送信する文字列
<span class='line'> 48</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'> 49</span>    * @return this
<span class='line'> 50</span>    */</span><span class="WHIT">
<span class='line'> 51</span> </span><span class="WHIT">  </span><span class="NAME">sendJapaneseKeys</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">text</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 52</span> </span><span class="WHIT">    </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">myNum</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">num</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 53</span> </span><span class="WHIT">    </span><span class="NAME">Clipboard.open</span><span class="PUNC">(</span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">clip</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 54</span> </span><span class="WHIT">      </span><span class="KEYW">for</span><span class="PUNC">(</span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">=</span><span class="NUMB">0</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">&lt;</span><span class="NAME">myNum</span><span class="PUNC">;</span><span class="WHIT"> </span><span class="NAME">i</span><span class="PUNC">++</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 55</span> </span><span class="WHIT">        </span><span class="NAME">clip.set</span><span class="PUNC">(</span><span class="NAME">text</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 56</span> </span><span class="WHIT">        </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"^v"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 57</span> </span><span class="WHIT">      </span><span class="PUNC">}</span><span class="WHIT">
<span class='line'> 58</span> </span><span class="WHIT">    </span><span class="PUNC">}</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 59</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 60</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 61</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'> 62</span>    * Shiftを押しながら指定したchをキー送信します。
<span class='line'> 63</span>    * @param {String} ch 送信する文字
<span class='line'> 64</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'> 65</span>    * @return this
<span class='line'> 66</span>    */</span><span class="WHIT">
<span class='line'> 67</span> </span><span class="WHIT">  </span><span class="NAME">sendKeyWithShift</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">ch</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 68</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"+"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">ch</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 69</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 70</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 71</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'> 72</span>    * Controlを押しながら指定したchをキー送信します。
<span class='line'> 73</span>    * @param {String} ch 送信する文字
<span class='line'> 74</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'> 75</span>    * @return this
<span class='line'> 76</span>    */</span><span class="WHIT">
<span class='line'> 77</span> </span><span class="WHIT">  </span><span class="NAME">sendKeyWithControl</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">ch</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 78</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"^"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">ch</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 79</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 80</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 81</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'> 82</span>    * Altを押しながら指定したchをキー送信します。
<span class='line'> 83</span>    * @param {String} ch 送信する文字
<span class='line'> 84</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'> 85</span>    * @return this
<span class='line'> 86</span>    */</span><span class="WHIT">
<span class='line'> 87</span> </span><span class="WHIT">  </span><span class="NAME">sendKeyWithAlt</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">ch</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 88</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"%"</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">ch</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 89</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 90</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'> 91</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'> 92</span>    * Back Spaceをキー送信します。
<span class='line'> 93</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'> 94</span>    * @return this
<span class='line'> 95</span>    */</span><span class="WHIT">
<span class='line'> 96</span> </span><span class="WHIT">  </span><span class="NAME">sendBackspace</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">ch</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'> 97</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{BACKSPACE}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 98</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'> 99</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>100</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>101</span>    * Breakをキー送信します。
<span class='line'>102</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>103</span>    * @return this
<span class='line'>104</span>    */</span><span class="WHIT">
<span class='line'>105</span> </span><span class="WHIT">  </span><span class="NAME">sendBreak</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">ch</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>106</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{BREAK}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>107</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>108</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>109</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>110</span>    * Caps Lockをキー送信します。
<span class='line'>111</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>112</span>    * @return this
<span class='line'>113</span>    */</span><span class="WHIT">
<span class='line'>114</span> </span><span class="WHIT">  </span><span class="NAME">sendCapsLock</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">ch</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>115</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{CAPSLOCK}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>116</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>117</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>118</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>119</span>    * Deleteをキー送信します。
<span class='line'>120</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>121</span>    * @return this
<span class='line'>122</span>    */</span><span class="WHIT">
<span class='line'>123</span> </span><span class="WHIT">  </span><span class="NAME">sendDelete</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">ch</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>124</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{DELETE}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>125</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>126</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>127</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>128</span>    * ↓をキー送信します。
<span class='line'>129</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>130</span>    * @return this
<span class='line'>131</span>    */</span><span class="WHIT">
<span class='line'>132</span> </span><span class="WHIT">  </span><span class="NAME">sendDownArrow</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">ch</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>133</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{DOWN}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>134</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>135</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>136</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>137</span>    * Endをキー送信します。
<span class='line'>138</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>139</span>    * @return this
<span class='line'>140</span>    */</span><span class="WHIT">
<span class='line'>141</span> </span><span class="WHIT">  </span><span class="NAME">sendEnd</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">ch</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>142</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{END}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>143</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>144</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>145</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>146</span>    * Enterをキー送信します。
<span class='line'>147</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>148</span>    * @return this
<span class='line'>149</span>    */</span><span class="WHIT">
<span class='line'>150</span> </span><span class="WHIT">  </span><span class="NAME">sendEnter</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>151</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{ENTER}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>152</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>153</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>154</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>155</span>    * Escをキー送信します。
<span class='line'>156</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>157</span>    * @return this
<span class='line'>158</span>    */</span><span class="WHIT">
<span class='line'>159</span> </span><span class="WHIT">  </span><span class="NAME">sendEsc</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>160</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{ESC}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>161</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>162</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>163</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>164</span>    * Helpをキー送信します。
<span class='line'>165</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>166</span>    * @return this
<span class='line'>167</span>    */</span><span class="WHIT">
<span class='line'>168</span> </span><span class="WHIT">  </span><span class="NAME">sendHelp</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>169</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{HELP}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>170</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>171</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>172</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>173</span>    * Homeをキー送信します。
<span class='line'>174</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>175</span>    * @return this
<span class='line'>176</span>    */</span><span class="WHIT">
<span class='line'>177</span> </span><span class="WHIT">  </span><span class="NAME">sendHome</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>178</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{HOME}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>179</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>180</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>181</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>182</span>    * Insertをキー送信します。
<span class='line'>183</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>184</span>    * @return this
<span class='line'>185</span>    */</span><span class="WHIT">
<span class='line'>186</span> </span><span class="WHIT">  </span><span class="NAME">sendInsert</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>187</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{INSERT}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>188</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>189</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>190</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>191</span>    * ←をキー送信します。
<span class='line'>192</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>193</span>    * @return this
<span class='line'>194</span>    */</span><span class="WHIT">
<span class='line'>195</span> </span><span class="WHIT">  </span><span class="NAME">sendLeftArrow</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>196</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{LEFT}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>197</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>198</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>199</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>200</span>    * NumLockをキー送信します。
<span class='line'>201</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>202</span>    * @return this
<span class='line'>203</span>    */</span><span class="WHIT">
<span class='line'>204</span> </span><span class="WHIT">  </span><span class="NAME">sendNumLock</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>205</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{NUMLOCK}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>206</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>207</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>208</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>209</span>    * Page Downをキー送信します。
<span class='line'>210</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>211</span>    * @return this
<span class='line'>212</span>    */</span><span class="WHIT">
<span class='line'>213</span> </span><span class="WHIT">  </span><span class="NAME">sendPageDown</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>214</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{PGDN}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>215</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>216</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>217</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>218</span>    * Page Upをキー送信します。
<span class='line'>219</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>220</span>    * @return this
<span class='line'>221</span>    */</span><span class="WHIT">
<span class='line'>222</span> </span><span class="WHIT">  </span><span class="NAME">sendPageUp</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>223</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{PGUP}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>224</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>225</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>226</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>227</span>    * Print Screenをキー送信します。
<span class='line'>228</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>229</span>    * @return this
<span class='line'>230</span>    */</span><span class="WHIT">
<span class='line'>231</span> </span><span class="WHIT">  </span><span class="NAME">sendPrintScreen</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>232</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{PRTSC}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>233</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>234</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>235</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>236</span>    * →をキー送信します。
<span class='line'>237</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>238</span>    * @return this
<span class='line'>239</span>    */</span><span class="WHIT">
<span class='line'>240</span> </span><span class="WHIT">  </span><span class="NAME">sendRightArrow</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>241</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{RIGHT}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>242</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>243</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>244</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>245</span>    * Scroll Lockをキー送信します。
<span class='line'>246</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>247</span>    * @return this
<span class='line'>248</span>    */</span><span class="WHIT">
<span class='line'>249</span> </span><span class="WHIT">  </span><span class="NAME">sendScrollLock</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>250</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{SCROLLLOCK}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>251</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>252</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>253</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>254</span>    * Tabをキー送信します。
<span class='line'>255</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>256</span>    * @return this
<span class='line'>257</span>    */</span><span class="WHIT">
<span class='line'>258</span> </span><span class="WHIT">  </span><span class="NAME">sendTab</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>259</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{TAB}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>260</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>261</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>262</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>263</span>    * ↑をキー送信します。
<span class='line'>264</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>265</span>    * @return this
<span class='line'>266</span>    */</span><span class="WHIT">
<span class='line'>267</span> </span><span class="WHIT">  </span><span class="NAME">sendUpArrow</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>268</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{UP}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>269</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>270</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>271</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>272</span>    * F1をキー送信します。
<span class='line'>273</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>274</span>    * @return this
<span class='line'>275</span>    */</span><span class="WHIT">
<span class='line'>276</span> </span><span class="WHIT">  </span><span class="NAME">sendF1</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>277</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{F1}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>278</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>279</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>280</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>281</span>    * F2をキー送信します。
<span class='line'>282</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>283</span>    * @return this
<span class='line'>284</span>    */</span><span class="WHIT">
<span class='line'>285</span> </span><span class="WHIT">  </span><span class="NAME">sendF2</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>286</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{F2}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>287</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>288</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>289</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>290</span>    * F3をキー送信します。
<span class='line'>291</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>292</span>    * @return this
<span class='line'>293</span>    */</span><span class="WHIT">
<span class='line'>294</span> </span><span class="WHIT">  </span><span class="NAME">sendF3</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>295</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{F3}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>296</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>297</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>298</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>299</span>    * F4をキー送信します。
<span class='line'>300</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>301</span>    * @return this
<span class='line'>302</span>    */</span><span class="WHIT">
<span class='line'>303</span> </span><span class="WHIT">  </span><span class="NAME">sendF4</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>304</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{F4}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>305</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>306</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>307</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>308</span>    * F5をキー送信します。
<span class='line'>309</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>310</span>    * @return this
<span class='line'>311</span>    */</span><span class="WHIT">
<span class='line'>312</span> </span><span class="WHIT">  </span><span class="NAME">sendF5</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>313</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{F5}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>314</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>315</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>316</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>317</span>    * F6をキー送信します。
<span class='line'>318</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>319</span>    * @return this
<span class='line'>320</span>    */</span><span class="WHIT">
<span class='line'>321</span> </span><span class="WHIT">  </span><span class="NAME">sendF6</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>322</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{F6}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>323</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>324</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>325</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>326</span>    * F7をキー送信します。
<span class='line'>327</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>328</span>    * @return this
<span class='line'>329</span>    */</span><span class="WHIT">
<span class='line'>330</span> </span><span class="WHIT">  </span><span class="NAME">sendF7</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>331</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{F7}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>332</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>333</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>334</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>335</span>    * F8をキー送信します。
<span class='line'>336</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>337</span>    * @return this
<span class='line'>338</span>    */</span><span class="WHIT">
<span class='line'>339</span> </span><span class="WHIT">  </span><span class="NAME">sendF8</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>340</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{F8}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>341</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>342</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>343</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>344</span>    * F9をキー送信します。
<span class='line'>345</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>346</span>    * @return this
<span class='line'>347</span>    */</span><span class="WHIT">
<span class='line'>348</span> </span><span class="WHIT">  </span><span class="NAME">sendF9</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>349</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{F9}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>350</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>351</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>352</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>353</span>    * F10をキー送信します。
<span class='line'>354</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>355</span>    * @return this
<span class='line'>356</span>    */</span><span class="WHIT">
<span class='line'>357</span> </span><span class="WHIT">  </span><span class="NAME">sendF10</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>358</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{F10}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>359</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>360</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>361</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>362</span>    * F11をキー送信します。
<span class='line'>363</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>364</span>    * @return this
<span class='line'>365</span>    */</span><span class="WHIT">
<span class='line'>366</span> </span><span class="WHIT">  </span><span class="NAME">sendF11</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>367</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{F11}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>368</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>369</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>370</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>371</span>    * F12をキー送信します。
<span class='line'>372</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>373</span>    * @return this
<span class='line'>374</span>    */</span><span class="WHIT">
<span class='line'>375</span> </span><span class="WHIT">  </span><span class="NAME">sendF12</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>376</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{F12}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>377</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>378</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>379</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>380</span>    * F13をキー送信します。
<span class='line'>381</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>382</span>    * @return this
<span class='line'>383</span>    */</span><span class="WHIT">
<span class='line'>384</span> </span><span class="WHIT">  </span><span class="NAME">sendF13</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>385</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{F13}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>386</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>387</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>388</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>389</span>    * F14をキー送信します。
<span class='line'>390</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>391</span>    * @return this
<span class='line'>392</span>    */</span><span class="WHIT">
<span class='line'>393</span> </span><span class="WHIT">  </span><span class="NAME">sendF14</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>394</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{F14}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>395</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>396</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>397</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>398</span>    * F15をキー送信します。
<span class='line'>399</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>400</span>    * @return this
<span class='line'>401</span>    */</span><span class="WHIT">
<span class='line'>402</span> </span><span class="WHIT">  </span><span class="NAME">sendF15</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>403</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{F15}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>404</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>405</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="PUNC">,</span><span class="WHIT">
<span class='line'>406</span> </span><span class="WHIT">  </span><span class="COMM">/**
<span class='line'>407</span>    * F16をキー送信します。
<span class='line'>408</span>    * @param {Number} num (オプション)送信する回数(初期値 1)
<span class='line'>409</span>    * @return this
<span class='line'>410</span>    */</span><span class="WHIT">
<span class='line'>411</span> </span><span class="WHIT">  </span><span class="NAME">sendF16</span><span class="PUNC">:</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">num</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='line'>412</span> </span><span class="WHIT">    </span><span class="NAME">sendKeys</span><span class="PUNC">(</span><span class="STRN">"{F16}"</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">num</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">this.myDuration</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>413</span> </span><span class="WHIT">    </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">this</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>414</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="WHIT">
<span class='line'>415</span> </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
<span class='line'>416</span> </span></pre></body></html>